<?php
/**
 * Created by IntelliJ IDEA.
 * User: UserXP
 * Date: 30.11.11
 * Time: 13:27
 */

class Admin_Form_Tskupina extends Zend_Form
{

    public function init()
    {
        $this->setName('tskupina');

        $id = new Zend_Form_Element_Hidden('id_tskupina');
        $id->addFilter('Int');

        $nazev = new Zend_Form_Element_Text('nazev');
        $nazev->setLabel('Název')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty');

        $odeslat = new Zend_Form_Element_Submit('submit');
        $odeslat->setAttrib('id_tskupina', 'submitbutton');

        $this->addElements(array($id, $nazev, $odeslat));

    }

}